package PUSHSendIntegrator;

public class DeliveryInd extends PUSHMmsMessage {

	protected static final String NL = "\r\n";
	public String deliveryIndMessage;

	public DeliveryInd() {
		deliveryIndMessage = "";
		deliveryIndMessage += MMS_MESSAGE_TYPE +" "+ this.getMessageID() + NL;
	}

	public String toString() {
		
		if(!isVersionSet()) return "Version not defined";
		if(!this.isMessageIDSet()) return "Version not defined";
		if(!this.isMessageSenderSet()) return "Version not defined";		
		if(!this.isMessageDateSet()) return "Version not defined";
		if(!this.isStatusSet()) return "Version not defined";
		
		deliveryIndMessage += MMS_VERSION + " " + this.getVersion() + NL;
		deliveryIndMessage += MMS_MESSAGE_ID + " " + this.getMessageID() + NL;
		deliveryIndMessage += MMS_TO + " " + this.getReadMmsTo() + NL;
		deliveryIndMessage += MMS_DATE + " " + this.getMessageDate() + NL;
		deliveryIndMessage += MMS_STATUS + " " + this.getStatus()+ NL;
		
		return deliveryIndMessage;
	}
}